def funName(arg1=5, arg2=10):
    s = arg1 * arg2
    return s


#a = eval(input("请输入长方形的长："))
#b = eval(input("请输入长方形的宽："))
area = funName()
print("长方形面积是：{}".format(area))
area = funName(12)
print("长方形面积是：{}".format(area))
area = funName(12, 8)
print("长方形面积是：{}".format(area))
area = funName(arg1=18, arg2=5)
print("长方形面积是：{}".format(area))
area = funName(18, arg2=4)
print("长方形面积是：{}".format(area))
# area = funName(4,arg1=10) # 报错
print("长方形面积是：{}".format(area))

def stuInfo(name,chinese,math,english):
  pStr = "{}的语文={}，数学={}，英语={}"
  print(pStr.format(name,chinese,math,english))

stuInfo('小李',92,95,97)
stuInfo('小李',92,math=95,english=97)
#stuInfo('小李',92,95,math=97) # 报错
#stuInfo('小李',92,math=95,97) # 报错

def StudentInfo1(name, *args): #定义函数StudentInfo1
  print('姓名：', name, '，其他：', args)

courses = ['语文', '数学', '英语']
StudentInfo1('李晓明', '语文', '数学', '英语')
StudentInfo1('李晓明',courses)
StudentInfo1('李晓明',*courses)
